package ord2.core;

/**
 * This class specifies a abstract query that encapsulte a object that represents
 * a query.
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public abstract class AbstractQuery<K> {
    
    private K query = null;
    
    /**
     * Creates a abstract query that encapsulates a object that represents
     * the real query.
     * @param query Object that will be encapsulated by the query.
     */
    public AbstractQuery(K query) {
        
        this.query = query;
    }
    
    /**
     * Gets a object encapsulated by this query.
     * @return Object encapsulated.
     */
    public final K getQuery() {
        
        return this.query;
    }
}
